<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.org/rich"
	template="../include/template.xhtml">
	
	<ui:define name="pageTitle">
		<h:outputText value="个人作品库" />
	</ui:define>
	<ui:define name="logoTitle">
		<h:outputText value="作品" />
	</ui:define>	

	<ui:define name="content">
		<br />
		
		<h:outputText value="个人作品库" class="strong"></h:outputText>
		<rich:separator lineType="double" height="2px" />
	<rich:panel>
	<rich:spacer width="30px"></rich:spacer>
		<s:div styleClass="right_center">
			<s:link value="作品库" view="/opus/index.xhtml" />
			<h:outputText value=" --> 作品管理  ︱" />
			<s:link value="作品添加" view="/opus/add.xhtml" />
		</s:div>
		<br />
		<s:div styleClass="right_center">
			<h:outputText value="我的作品列表" class="strong"></h:outputText>
			<br />
			<rich:dataGrid value="#{opusIndexAction.ownOpuses}" columns="4"
				var="vopus" width="100%">
				<h:outputLink value="../upload/opus/#{vopus.imageUrl}">
					<h:graphicImage title="#{vopus.topic}"
						value="/upload/opus/small_#{vopus.imageUrl}" />
				</h:outputLink>
				<h:form>
					<h:outputText value="类别:" />
					<h:outputText value="#{vopus.category.name}" />
					<h:commandLink action="#{opusIndexAction.deleteOpus(vopus)}"
						onclick="return confirm('确定要删除吗?')" value="删除" />
				</h:form>

			</rich:dataGrid>
		</s:div>
	</rich:panel>	
		
	</ui:define>
</ui:composition>
